package creditcard.account;

import framework.account.AAccount;

/**
 * Created with IntelliJ IDEA.
 * User: asus
 * Date: 12/18/12
 * Time: 5:12 PM
 * To change this template use File | Settings | File Templates.
 */
public class CreditCardAccount extends AAccount {
    private CreditCardType type;


    public CreditCardAccount(String cardType, String accountNumber) {
        super("CreditCardAccount", accountNumber);
        type = CreditCardType.getType(cardType);
    }

    @Override
    public float getInterestRate() {
        return type.getMonthylRate();
    }

}
